package mathive.server.persistant;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class GamesData {
	public static final int EASY = 0;
	public static final int MEDIUM = 1;
	public static final int HARD = 2;
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;

	@Persistent
	private int id;
	
	@Persistent
	private String type;
	
	@Persistent
	private int difficulty;

	public GamesData(int id, String type, int difficulty){
		this.id = id;
		this.type = type;
		this.difficulty = difficulty;
	}

	public int getId(){
		return id;
	}
	
	public String getType(){
		return type;
	}
	
	public int getDifficulty(){
		return difficulty;
	}
	
}
